home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / channel_nick < prev    next >
Encoding:
Text File  |  2001-03-21  |  1.1 KB  |  40 lines

  1. Synopsis:
  2.    on [<modes>]channel_nick [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever anyone on a channel common to the client
  6.    changes nicknames.  It is triggered for any nickname change, including
  7.    the client's.
  8.  
  9. Parameters:
  10.    $0    the channel on which the nick change was observed
  11.    $1    the person's old nickname
  12.    $2    the person's new nickname
  13.  
  14. Examples:
  15.    To make a distinction between the client changing nicks and other people:
  16.       on ^channel_nick "*" {
  17.          if ( [$0] == C ) {
  18.             if ( [$1] == N ) {
  19.                echo *** You have changed nicks to $2
  20.             } {
  21.                echo *** $1 has changed nicks to $2
  22.             }
  23.          } {
  24.             if ( [$1] == N ) {
  25.                echo *** You have changed nicks to $2 on $0
  26.             } {
  27.                echo *** $1 has changed nicks to $2 on $0
  28.             }
  29.          }
  30.       }
  31.  
  32. See Also:
  33.    nick(1); on(5) nickname
  34.  
  35. Other Notes:
  36.    This hook differs from the NICKNAME hook in that it is triggered once per
  37.    nick change per channel, whereas NICKNAME is only triggered once per nick
  38.    change.
  39.  
  40.